﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TreeMenu.ascx.cs" Inherits="Indochinaodyssey.UserControl.NavigatorMenu.TreeMenu" %>
<style type="text/css">
    .root
    {
        padding: 0px 0px 2px 0px margin-left: 2px;
    }
    .root div
    {
        padding: 0px 0px 0px 0px;
        display: none;
        margin-left: 1em;
    }
    
    .map
    {
        width: 16px;
        height: 16px;
    }
    .link-news2
    {
        float: left;
        width: 90%;
        padding-left: 10%;
        text-align: left;
        text-decoration: none;
        font-size: 12px;
        border-bottom-color: #e4e4e4;
        border-bottom-style: dotted;
        border-bottom-width: 1px;
        font-weight: bold;
    }
</style>
<script type="text/javascript" language="JavaScript">

    function toggleNode(node) {
        var nodeArray = node.childNodes;
        for (i = 0; i < nodeArray.length; i++) {
            node = nodeArray[i];
            if (node.tagName && node.tagName.toLowerCase() == 'div')
                node.style.display = (node.style.display == 'block') ? 'none' : 'block';
        }
    }

    function openNode(node) {
        var nodeArray = node.childNodes;
        for (i = 0; i < nodeArray.length; i++) {
            node = nodeArray[i];
            if (node.tagName && node.tagName.toLowerCase() == 'div')
                node.style.display = 'block';
        }
    }

    function closeNode(node) {
        var nodeArray = node.childNodes;
        for (i = 0; i < nodeArray.length; i++) {
            node = nodeArray[i];
            if (node.tagName && node.tagName.toLowerCase() == 'div')
                node.style.display = 'none';
        }
    }

    function showNode(node) {
        if (!node) return;
        if (!node.parentNode) return;
        node = node.parentNode;
        while (node.tagName.toLowerCase() == 'div') {
            openNode(node);
            node = node.parentNode;
        }
    }

</script>
<asp:Label ID="lblImg" runat="server"></asp:Label>
<asp:Label ID="lblCT" runat="server" Font-Bold="True"></asp:Label><br />
<hr />
<asp:Label ID="lblTreeMenu" runat="server"></asp:Label>
